<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>sort</title>
</head>
<body>
var arr=[5,11,6,27];

console.log(arr.sort();)
arr.sort(function(a,b){return a-b})
console.log(arr.sort(function(a,b){return a-b}))

</body>
</html>